package com.zx.eval.api.admin;

import com.zx.common.utils.PageUtils;
import com.zx.common.utils.R;
import com.zx.eval.service.ResultService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("sys/result")
public class ResultApi {
    /**
     * 列表
     */
    @RequestMapping("/list")
    @RequiresPermissions("sys:result:list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = resultService.queryPage(params);

        return R.ok().put("page", page);
    }

    @Autowired
    private ResultService resultService;
}
